<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = ['滴滴','曹操','顺丰']
        arr.shift()
        console.log(arr) //["曹操", "顺丰"] 删除前面的一个

        var arr1 = ['滴滴','曹操','顺丰']
        arr1.pop()
        console.log(arr1) //["滴滴", "曹操"] 删除最后的一个
    </script>
</body>
</html>